﻿<%@ Page Title="Home Page" Language="VB" MasterPageFile="~/Site.Master" AutoEventWireup="false"
    CodeFile="Default.aspx.vb" Inherits="_Default" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <p>
        Enter first number :
        <asp:TextBox ID="TextBox1" runat="server"></asp:TextBox>
        <asp:RangeValidator ID="RangeValidator1" runat="server" 
            ControlToValidate="TextBox1" ErrorMessage="enter a number" 
            MaximumValue="1000000" MinimumValue="0" Type="Integer"></asp:RangeValidator>
    </p>
    <p>
        enter second number :
        <asp:TextBox ID="TextBox2" runat="server"></asp:TextBox>
        <asp:RangeValidator ID="RangeValidator2" runat="server" 
            ControlToValidate="TextBox2" ErrorMessage="enter a number" 
            MaximumValue="1000000" MinimumValue="0" Type="Integer"></asp:RangeValidator>
    </p>
    <p>
        <asp:Button ID="Button1" runat="server" Text="sum" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Label ID="Label1" runat="server" Text="answer"></asp:Label>
    </p>
    <p>
        &nbsp;</p>
</asp:Content>